package be.g00glen00b.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import be.g00glen00b.rest.RESTClient;

@Controller
public class MainController {
	
	@Autowired
	private RESTClient client;

	@RequestMapping(value = "/index.html")
	public String getIndex(ModelMap model) {
		model.addAttribute("user", client.getUser());
		return "index";
	}
}
